﻿#pragma once
#include "./framelesscore/framelessdialog.h"
class DialogFrame:public FramelessDialog
{
	Q_OBJECT
public:
	DialogFrame(QWidget* parent = nullptr);
	virtual ~DialogFrame();
public:
	void setIcon();
	void setTitle(QString title);
protected:
	virtual bool event(QEvent* event)override;
protected slots:
	void on_btnMenu_Min_clicked();
	void on_btnMenu_Max_clicked();
	void on_btnMenuRestore_clicked();
	void on_btnMenu_Close_clicked();

	void titleDblClick();
	void windowStateChange(bool max);
private:
	class Internal;
	Internal* p;
};